<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <f:facet name="first">
            <meta http-equiv="X-UA-Compatible" content="IE=edge" />
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <meta name="viewport" content="width=device-width, initial-scale=1.0, 
                  maximum-scale=1.0, user-scalable=0" />
            <meta name="apple-mobile-web-app-capable" content="yes" />
        </f:facet>
        <title>testtesttest</title>
    </h:head>
    <h:body>
                    <h:form>
              <p:panelGrid columns="2" layout="grid"  >
                <h:panelGroup layout="block" style="">
                    <p:button value="主页" href="index.xhtml"></p:button>
                </h:panelGroup>
            </p:panelGrid>
            </h:form>  
         <h:form id="form"> 
             <p:dataTable var="user" value="#{UserView.users}">
                <p:column headerText="姓名">
                    <h:outputText value="#{user.name}"/>
                </p:column>
                <p:column headerText="年龄">
                    <h:outputText value="#{user.age}"/>
                </p:column>
                <p:column headerText="城市">
                    <h:outputText value="#{user.contry}"/>
                </p:column>
                <p:column headerText="状态">
                    <h:outputText value="#{user.status}"/>
                </p:column>
            </p:dataTable>
        </h:form> 
        <h:form>
            <p:selectManyCheckbox id="grid" value="#{statusService.name}" layout="grid" columns="3">
                <f:selectItems value="#{userService.list}" var="user" itemLabel="#{user.name}" itemValue="#{user.name}" />
            </p:selectManyCheckbox>
            <br/>
            <p:commandButton id="submit-button" value="提交" action="index.xhtml" actionListener="#{statusService.userChange}"/>
        </h:form>
       
    </h:body>
</html>
